import java.util.ArrayList;
import java.util.List;

import org.apache.thrift.TException;

import thriftGenerated.Req;
import thriftGenerated.myService;
import thriftGenerated.student;

/**
 * Created by dengpan on 2016/12/3.
 */
public class MyServiceImpl implements myService.Iface{

    @Override
    public List<student> getStudents(Req req) throws TException {


        System.out.println(req.toString());
        List<student> l = new ArrayList<>();
        l.add(new student("dengpan", (short)12));
        l.add(new student("hahha", (short)14));
        return l;
    }
}
